package com.hitqz.robot.biz.flow.component.agv;//package com.hitqz.robot.flow.component.agv;
//
//import com.hitqz.robot.config.RobotDriverService;
//import com.yomahub.liteflow.annotation.LiteflowComponent;
//import com.yomahub.liteflow.core.NodeComponent;
//import lombok.AllArgsConstructor;
//
///**
// * @Author: Wang Weiwei
// * @Description: 控制当前导航
// * @DateTime: 2024/5/6 10:44
// **/
//
//@LiteflowComponent(value = "ControlCurrentTask", name = "[轮对轮轴xg]控制当前导航")
//@AllArgsConstructor
//public class ControlCurrentTask extends NodeComponent {
//    private final RobotDriverService robotDriverService;
//    //0继续 1暂停 2取消
//    @Override
//    public void process() throws Exception {
//        String key = "cmd";
//        //Integer cmd = this.getCmpData(JSONObject.class).get(key, Integer.class);
//        //if (cmd == 0) {
//        //    dao.robotTaskResumeReq();
//        //} else if (cmd == 1) {
//        //    dao.robotTaskPauseReq();
//        //} else if (cmd == 2) {
//        //    dao.robotTaskCancelReq();
//        //}
//    }
//}